package xyz.lwm.lazycat.jdbc.exec;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.sql.SQLException;

/**
 * jdbc call back interface
 *
 * @author lwm
 * @param <T>
 * @param <R>
 */
@FunctionalInterface
public interface JdbcCallback<T, R> {

    @Nullable R call(@NotNull T t) throws SQLException;

}
